﻿using System;

namespace MagistrAPI.MathModel
{
    public static class MathModelMatrices
    {
        private static double[,] _jjj = new[,]
                                            {
                                                {
                                                    25000,
                                                    0,
                                                    0
                                                }
                                                ,
                                                {
                                                    0,
                                                    441666.6666666667,
                                                    0
                                                }
                                                ,
                                                {
                                                    0,
                                                    0,
                                                    441666.6666666667
                                                }
                                            };

        private static double[,] _jv = MathModelFunc.Mrotv(_jjj, 10e-15);

        public static double[,] Jjj
        {
            get { return _jjj; }
        }

        public static double[,] Jv
        {
            get { return _jv; }
        }

        public static double[,] Lφn(double fi)
        {
            return new[,] {{1, 0, 0}, {0, Math.Cos(fi), Math.Sin(fi)}, {0, -Math.Sin(fi), Math.Cos(fi)}};
        }

        public static double[,] Lαn(double al)
        {
            return new[,] {{Math.Cos(al), Math.Sin(al), 0}, {-Math.Sin(al), Math.Cos(al), 0}, {0, 0, 1}};
        }

        public static double[,] Lγn(double gam)
        {
            return new[,] {{1, 0, 0}, {0, Math.Cos(gam), Math.Sin(gam)}, {0, -Math.Sin(gam), Math.Cos(gam)}};
        }


    }
}
